
package com.market.web.form;

import java.text.DateFormat;
import java.util.Date;

import org.apache.struts.action.ActionForm;

public class MessageForm extends ActionForm
{
    /**
     * 
     */
    private static final long serialVersionUID = -456512940442233585L;

    private int id;

    private String category;

    private String subject;

    private String description;

    private Date adddate;

    private int hot;

    private String type;

    private String cate;

    public String getCate()
    {
        return cate;
    }

    public void setCate(String cate)
    {
        this.cate = cate;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public Date getAdddate()
    {
        return adddate;
    }

    public void setAdddate(Date adddate)
    {
        this.adddate = adddate;
    }

    public String getCategory()
    {
        return category;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getSubject()
    {
        return subject;
    }

    public void setSubject(String subject)
    {
        this.subject = subject;
    }

    public int getHot()
    {
        return hot;
    }

    public void setHot(int hot)
    {
        this.hot = hot;
    }

    public String getFormatedDate()
    {
        DateFormat f = DateFormat.getDateInstance();
        return f.format(adddate);
    }
}
